package org.etherframework.tests.features.command.commands
{
	import org.etherframework.controller.EtherCommand;
	import org.etherframework.tests.features.command.events.UpdateItemEvent;
	import org.etherframework.tests.features.command.models.Item;
	
	public class GestureCommand extends EtherCommand
	{
		public static var executed:Vector.<GestureCommand> = new Vector.<GestureCommand>(); 
		
		public var wasExecutedWithItem:Item;
		
		private var _event:UpdateItemEvent;
		
		public function GestureCommand(event:UpdateItemEvent)
		{
			super();
			
			_event = event;
		}
		
		override public function execute():void
		{
			wasExecutedWithItem = _event.item;
			executed.push(this);
		}
	}
}